package br.com.curso.builder;

import java.util.Calendar;

public class TestaBuilderNF {

	public static void main(String[] args) {

		Calendar a = Calendar.getInstance();
		a.add(Calendar.DATE, -3);
				
		NotaFiscal nf = new NotaFiscalBuilder()
		.comRazaoSocial("Empresa")
		.comCnpj("cnpj")
		//.naData(a)
		.com(new ItemDaNotaBuilder().comDescricao("lapis").comValor(15).criarItemDaNota())
		.com(new ItemDaNotaBuilder().comDescricao("caneta").comValor(100.00).criarItemDaNota())
		.comObservacoes("coisa qquer")
		.criarNotafiscal();
		
		System.out.println(nf.getValorBruto());
		System.out.println(nf.getImpostos());
		System.out.println(nf.getDataEmissao().get(Calendar.DATE));
	}	
}
